package com.atguigu.gulimall.finance.dao;

import com.atguigu.gulimall.finance.entity.MainEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 财务收入
 *
 * @author huguangwei
 * @email huguangwei@gmail.com
 * @date 2023-01-19 09:18:37
 */
@Mapper
public interface MainDao extends BaseMapper<MainEntity> {
    /**
     * 统计指定类型的总数
     *
     * @param typeName
     * @param incomeType
     * @return
     */
    BigDecimal getSumMoney(@Param("typeName") String typeName, @Param("incomeType") Integer incomeType);
}
